package July;

import java.util.Scanner;

public class Day0720 {

    //井字棋
    public boolean checkWon(int[][] board) {
        boolean f = false;
        //玩家赢的条件
        //斜着成立
        if (board[0][0] + board[1][1] + board[2][2] == 3)
            f = true;
        if (board[0][2] + board[1][1] + board[2][0] == 3)
            f = true;

        //横着和竖着成立
        for (int i = 0; i < 3; i++) {
            if (board[0][i] + board[1][i] + board[2][i] == 3
                    ||board[i][0] + board[i][1] + board[i][2] == 3)
                return f = true;
        }
        return f;
    }
    //密码强度
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        int count = 0;
        count = len(s) + letter(s) + nums(s) + symbol(s) + reward(s);

        if (count>=90){
            System.out.println("VERY_SECURE");
        }else if (count>=80){
            System.out.println("SECURE");
        }else if (count>=70){
            System.out.println("VERY_STRONG");
        }else if (count>=60){
            System.out.println("STRONG");
        }else if (count>=50){
            System.out.println("AVERAGE");
        }else if (count>=25){
            System.out.println("WEAK");
        }else {
            System.out.println("VERY_WEAK");
        }
    }

    private static int reward(String s) {
        if (letter(s) == 20 && nums(s) !=0 && symbol(s) != 0){
            return 5;
        } else if (letter(s) == 10 && nums(s) !=0 && symbol(s) != 0) {
            return 3;
        }else if (letter(s) == 10 && nums(s) !=0 && symbol(s) == 0){
            return 2;
        }else
            return 0;
    }

    private static int symbol(String s) {
        int nums = 0;

        for (int i = 0; i < s.length(); i++) {
            char ch = s.charAt(i);
            if ((ch >= 0x21 && ch<=0x2f)||(ch >= 0x3A && ch<=0x40)|| (ch >= 0x5B && ch<=0x60)|| (ch >= 0x7B && ch<=0x7E)){
                nums++;
            }
        }

        if (nums == 0){
            return 0;
        }else if (nums == 1){
            return 10;
        }else
            return 25;
    }

    private static int nums(String s) {
        int nums = 0;

        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) >= '0' && s.charAt(i) <= '9'){
                nums++;
            }
        }

        if (nums == 0){
            return 0;
        }else if (nums == 1){
            return 10;
        }else
            return 20;
    }

    private static int letter(String s) {
        //大写字母
        int D = 0;
        //小写字母
        int X = 0;

        for (int i = 0; i < s.length(); i++) {
           String ch = String.valueOf(s.charAt(i));

           if (ch.matches("[A-Z]"))
               D++;
           else if (ch.matches("[a-z]")) {
               X++;
           }
        }

        if (D != 0 && X !=0){
            return 20;
        }else if((D != 0 && X == 0 )||(D == 0 && X !=0) ){
            return 10;
        }else
            return 0;
    }

    public static int len(String s){
        if (s.length() >= 8){
            return 25;
        } else if (s.length() >= 5) {
            return 10;
        }else {
            return 5;
        }
    }


}
